﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Base.Core.UnityFactory;
using BF.IBLL.Dictionary;
using BF.Model;
using WebDataControls;

namespace BF.Web.pages.Dictionary.DictManagement
{
    public partial class DictView : BasePage
    {
        BF.IBLL.Dictionary.Idic_DictBLL bll = IOCFactory.GetIOCResolve<Idic_DictBLL>();

        #region 系统事件

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                dic_Dict model = bll.GetModel(new Guid(GKey));//初始化数据
                WebUIHelper.SetControlsValue(model, "dic_Dict", this.Form);
            }
        }

        #endregion

        #region 属性
        /// <summary>
        /// 修改数据的GUID
        /// </summary>
        private string GKey
        {
            get { return Request.QueryString["gKey"]; }
        }
        #endregion

    }
}